import java.io.*;

public class TestRandom
{
	public static void main(String [] args)throws IOException
	{
		FileOutputStream fos=new FileOutputStream("f:/random.dat");
		OutputStreamWriter osw=new OutputStreamWriter(fos);
		for(int j=0;j<10;j++)
		{
			String s=String.valueOf(Math.random());
			char [] ch=new char[s.length()-1];
			int m=0;
			for(int i=1;i<s.length();i++)
			{
				if(s.charAt(i)=='.')
				{
					i++;
				}
				ch[m]=s.charAt(i);
				m++;
			}
			s=String.copyValueOf(ch)+"\n";
			System.out.println(s);
			osw.write(s);
			
			
		}
		osw.close();
		
	}
}